let getUsers = (user_id) => {
	setTimeout(() => {
		let data = "用户数据";
		iterator.next(user_id + data)
	}, 1000);
}
let getOrders = (user_data) => {
	setTimeout(() => {
		let data = "订单数据";
		iterator.next(user_data + data);
	}, 1000);
}
let getGoods = (order_data) => {
	setTimeout(() => {
		let data = "商品数据";
		iterator.next(order_data + data);
	}, 1000);
}

function* getData(user_id) {
	let user_data = yield getUsers(user_id);
	let order_data = yield getOrders(user_data);
	let goods_data = yield getGoods(order_data);
	console.log({user_data, order_data, goods_data})
}

// 场景: 根据用户ID,获取用户信息,根据用户信息获取订单信息,根据订单信息获取商品信息
let user_id = "yushi";
let iterator = getData(user_id);
iterator.next();
